<?php

  $listInfo = array();
  $listInfo['page'] = 1;
  $listInfo['onpage'] = $CONFIG['NewsRSSCount'];
  $listInfo['sort'] = 'date';
  $listInfo['order'] = 'p_date';
  $listInfo['order_type'] = 'DESC';

  $News = getNewsPages($listInfo);
  setKeywordsAndRubrics($News);
  $tpl->assign("News", $News);

  header('Content-type: text/xml; charset='.$language['charset']);
  $tpl->display($CONFIG['ModulesFolder']."module.rss.tpl");
  exit;
?>